package test;

import org.yl.rpc.op.Echo;
import org.yl.rpc.op.RemoteEcho;
import org.yl.rpc.support.Server;

import db.DAOImpl;
import db.IDAO;

import rpc.RPC;
import rpc.RPC.RPCServer;



public class MainServer {
	public static void main(String[] args) {
		Server server = new RPC.RPCServer();
		server.register(Echo.class, RemoteEcho.class);
		server.register(IDAO.class, DAOImpl.class);
		server.start();
	}

}
